package com.pcbly.web.bean.dict;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;

public class DictCategoryValueBean extends AbstractBaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4730040944414014411L;

	private String name;
	private String desc;
	private int orderBy;
	private String dictId;
	private String childId;
	private String childValueId;
	private String userDefined;
	private List<DictCategoryFilterBean> filterBeans = new ArrayList<DictCategoryFilterBean>(
			0);

	
	public String getChildId() {
		return childId;
	}

	public void setChildId(String childId) {
		this.childId = childId;
	}

	public String getChildValueId() {
		return childValueId;
	}

	public void setChildValueId(String childValueId) {
		this.childValueId = childValueId;
	}

	public List<DictCategoryFilterBean> getFilterBeans() {
		return filterBeans;
	}

	public void setFilterBeans(List<DictCategoryFilterBean> filterBeans) {
		this.filterBeans = filterBeans;
	}

	public String getDictId() {
		return dictId;
	}

	public void setDictId(String dictId) {
		this.dictId = dictId;
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}

	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}

	public int getOrderBy() {
		return orderBy;
	}

	public String getUserDefined() {
		if (userDefined == null || "".equals(userDefined)) {
			return "0";
		}
		return userDefined;
	}

	public void setUserDefined(String userDefined) {
		this.userDefined = userDefined;
	}

}
